<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <script>
        function rightchange(char,n) {
            var char1 = char.slice(0,n);
            var char2 = char.slice(n);
            return(char2 + char1);
        }
        console.log(rightchange("abcdef",2));
    </script>
</head>
<body>
    
</body>
</html>